import org.springframework.context.support.ClassPathXmlApplicationContext;
import service.UserService;
import service.impl.UserServiceimpl;

public class Main {
    public static void main(String[] args) {
//        1.加载配置文件
        ClassPathXmlApplicationContext classPathXmlApplicationContext = new ClassPathXmlApplicationContext("applicationContext.xml");
//        2.获取资源
        UserService serviceimpl = (UserService) classPathXmlApplicationContext.getBean("serviceimpl");
        serviceimpl.say();
    }
}
